package com.example.mall.service;

import com.example.mall.doc.ProductsDoc;
import com.example.mall.query.ProductsQueryDto;
import com.example.mall.result.JSONResult;
import com.example.mall.result.PageList;

/**
 * @Author: xxxliu
 * @CreateTime: 2025-05-20
 * @Version: 1.0
 */
public interface IESProductService {

    //添加课程
    void save(ProductsDoc doc);

    //批量添加课程
    void saveAll(ProductsDoc[] docs);

    //删除课程
    void delete(ProductsDoc doc);

    //搜索课程
    PageList<ProductsDoc> searchProducts(ProductsQueryDto dto);

    ProductsDoc getById(Long id);

    void deleteById(Long id);
}
